package com.exm.collectcodenew.web.controller;

import com.exm.collectcodenew.common.vo.ResultMap;
import com.exm.collectcodenew.web.entity.Works;
import com.exm.collectcodenew.web.service.WorkCommentDetailByMapperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
@RequestMapping("/commentByMapper")
public class WorkCommentDetailByMapperController {
    @Autowired
    private WorkCommentDetailByMapperService workCommentDetailByMapperService;
    @PostMapping("detailByMapper")
    public ResultMap getDetailBysql(@RequestBody Works works) {
        return workCommentDetailByMapperService.selectDetails(works);
    }


}